home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
likene1a
/
myprog2.frm
< prev
next >
Wrap
Text File
|
1999-09-24
|
6KB
|
257 lines
VERSION 5.00
Begin VB.Form Form12
BorderStyle = 3 'Fixed Dialog
Caption = "My Prog"
ClientHeight = 1560
ClientLeft = 4605
ClientTop = 3900
ClientWidth = 3960
ControlBox = 0 'False
FillStyle = 0 'Solid
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "myprog2.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1560
ScaleWidth = 3960
ShowInTaskbar = 0 'False
Begin VB.TextBox Text3
Height = 315
Left = 1560
TabIndex = 8
Text = "URL"
Top = 120
Width = 2415
End
Begin VB.Timer Timer1
Left = 3720
Top = 1560
End
Begin VB.TextBox Text2
Height = 315
Left = 1560
TabIndex = 7
Text = "Insert IP address here"
Top = 480
Width = 2415
End
Begin VB.CommandButton Command27
Caption = "Mouse stuff"
Height = 375
Left = 2520
TabIndex = 3
Top = 1200
Width = 1455
End
Begin VB.CommandButton Command6
Caption = "Windows stuff"
Height = 375
Left = 2520
TabIndex = 1
Top = 840
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "Connect"
Height = 735
Left = 1440
TabIndex = 4
Top = 840
Width = 1095
End
Begin VB.CommandButton Command25
Caption = "Exit"
Height = 375
Left = 0
TabIndex = 2
Top = 1200
Width = 1455
End
Begin VB.CommandButton Command8
Caption = "Miscellaneous"
Height = 375
Left = 0
TabIndex = 0
Top = 840
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "Goto URL"
Height = 375
Left = 0
TabIndex = 5
Top = 480
Width = 1455
End
Begin VB.CommandButton Command30
Caption = "Open Pog."
Height = 375
Left = 0
TabIndex = 6
Top = 120
Width = 1455
End
End
Attribute VB_Name = "Form12"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mmflag As Boolean
Dim sax As Integer
Dim Say As Integer
Private Sub Command11_Click()
Load form2
form2.Show
End Sub
Private Sub Command1_Click()
Command30.Enabled = False
Command2.Enabled = False
Command8.Enabled = False
Command6.Enabled = False
Command27.Enabled = False
If Command1.Caption = "Connect" Then
Command1.Caption = "Connecting"
ElseIf Command1.Caption = "Connecting" Then
Command1.Caption = "Cancel"
ElseIf Command1.Caption = "Cancel" Then
Command1.Caption = "Connect"
Form12.Caption = "My prog"
End If
If Command1.Caption = "Connecting" Then
Command1.Enabled = False
Form12.Caption = "Connecting"
Dim pausetime As Integer
pausetime = 5
start = Timer
Do While Timer < start + pausetime
DoEvents
Loop
finish = Timer
Command1.Enabled = True
Command1.Caption = "Cancel"
Form12.Caption = "Connected"
End If
If Command1.Caption = "Cancel" Then
Command30.Enabled = True
Command2.Enabled = True
Command8.Enabled = True
Command6.Enabled = True
Command27.Enabled = True
End If
End Sub
Private Sub Command2_Click()
Shell "start http://" & Text3.Text
End Sub
Private Sub Command27_Click()
Load Form4
Form4.Show
End Sub
Private Sub Command25_Click()
Call ImplodeForm(Me, 2, 500, 1)
End
Set Form1 = Nothing
End Sub
Private Sub Command3_Click()
Load Form6
Form6.Show
Command6.Enabled = True
Command2.Enabled = True
Command8.Enabled = True
Command27.Enabled = True
Command12.Enabled = True
Command1.Enabled = True
Command18.Enabled = True
Command21.Enabled = True
Combo1.Enabled = True
Text6.Enabled = True
Text3.Enabled = True
Form6.Hide
Command3.Visible = False
End Sub
Private Sub Command30_Click()
DirControls.Show
End Sub
Private Sub Command6_Click()
Load form2
form2.Show
End Sub
Private Sub Command8_Click()
Load frmmain
frmmain.Show
End Sub
Private Sub Form_Load()
Load Me
Command30.Enabled = False
Command2.Enabled = False
Command8.Enabled = False
Command6.Enabled = False
Command27.Enabled = False
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Call ImplodeForm(Me, 2, 500, 1)
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim fml As Long
Dim fmt As Long
Dim a As Integer
If mmflag = True Then
fml = Me.Left: fmt = Me.Top
If X > sax Then Me.Left = fml + (X - sax)
If X < sax Then Me.Left = fml - (sax - X)
If Y > Say Then Me.Top = fmt + (Y - Say)
If Y < Say Then Me.Top = fmt - (Say - Y)
End If
End Sub
Private Sub form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If mmflag = False Then
sax = X
Say = Y
mmflag = True
End If
Me.MousePointer = vbSizePointer
Timer1.Enabled = False
End Sub
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
mmflag = False
Me.MousePointer = vbDefault
End Sub
Private Sub Picture1_Click()
Picturesave.Picture = Picture1.Picture
Picture1.Picture = Picture2.Picture
End Sub